<?php
class cls_data_groupbuy extends cls_data_base
{
	function current_group_buy()
	{
		$sql='select * from discount where discounttype=3 and status=1';
		$re=$this->db->getRow($sql);
		return $re;
	}
	
	function next_group_buy()
	{
		$sql='select * from discount where discounttype=3 and status=2';
		$re=$this->db->getRow($sql);
		return $re;
	}
}